﻿using System.Collections.Generic;

namespace NoORM.Core.Contract
{
    /// <summary>
    /// 事务的请求参数
    /// </summary>
    public class TransactionRequest
    {
        /// <summary>
        /// 表名
        /// </summary>
        public string Table { get; set; }

        /// <summary>
        /// 执行的操作,insert,update,delete
        /// </summary>
        public string Operator { get; set; }

        /// <summary>
        /// delete和update的条件
        /// </summary>
        public List<QueryExpression> Queries { get; set; }

        /// <summary>
        /// 数据
        /// </summary>
        public Dictionary<string, object> Data { get; set; }

    }
}
